Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selector buttons #200

Merged
merged 11 commits into from
Jun 5, 2021
Merged

Selector buttons #200

merged 11 commits into from
Jun 5, 2021

Conversation

sents
Copy link
Contributor

@sents sents commented Jun 2, 2021

This PR adds buttons on the selection box to delete, duplicate and scale the selected elements.
It currently looks like this:
Screenshot_2021-06-02 NSZKjl9bBeK40hJXY13sSuM4FDjQymK0XedD-FM4bpo- board on WBO
Here is a video demo:
https://user-images.githubusercontent.com/26575793/120487928-a84cc600-c3b6-11eb-812b-23485410ce04.mp4

It also includes keybindings d for duplication and delete for deleting the selection.

Internally the PR replaces the deltax and deltay attributes in a message with the transform attribute, containing a transformation matrix. Also it adds a new message type copy. This message contains an id a newid, and copies the object with the id id to an object with id newid.

I tried to make this PR IE9 compatible, but since I work on linux I could not test the compatibility.
The PR also includes a commit making the changes in #193 IE9 compatible (or so I hope). If you would rather have these fixes in a separate PR please tell me and I will open a new PR.

By opening a pull request, I certify that I hold the intellectual property of the code I am submitting, and I am granting the initial authors of WBO a perpetual, worldwide, non-exclusive, royalty-free, and irrevocable license to this code.

@lovasoa
Copy link
Owner

lovasoa commented Jun 2, 2021

This looks great, and very useful!

I'd like to merge #195 first, then we'll merge this.

@sents sents force-pushed the selector_buttons branch from 540a101 to d7b341d Compare June 2, 2021 14:34
@lovasoa lovasoa merged commit 2aee70e into lovasoa:master Jun 5, 2021
@sents sents deleted the selector_buttons branch June 5, 2021 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants